#ifndef _SERVER_PROTOCOL_H_
# define _SERVER_PROTOCOL_H_

#define DATA_TYPE_ERROR 0
#define DATA_TYPE_STRING 1
#define DATA_TYPE_INT 2
#define DATA_TYPE_LIST 3
#define DATA_TYPE_GRAPH 4
#define DATA_TYPE_INTERNAL_FUNC 5

char *request_read(int sd);
void reply_send(int sd, char dtype, void *data);

#endif
